package com.iafme.dto.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.systemframework.sys.dto.request.common.PageResponseDTO;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Date;

/**
 * @author summer
 * @version 1.0
 * @date 2025/1/7 17:54
 */
@Data
public class CourseReqDTO extends PageResponseDTO implements Serializable {

    private Integer id;

    @NotNull(message = "报考项目不能为空")
    private Integer projectId;

    @NotNull(message = "报考等级不能为空")
    private Integer levelId;

    @NotNull(message = "考试项目不能为空")
    private String name;

    @NotNull(message = "报考场次不能为空")
    private Integer showingsId;

    private String projectName;

    private String levelName;

    private String showingsName;

    private BigDecimal amount;

    private LocalDate courseDate;

    @JsonFormat(pattern = "HH:mm",shape = JsonFormat.Shape.STRING)
    private Date startTime;

    @JsonFormat(pattern = "HH:mm",shape = JsonFormat.Shape.STRING)
    private Date endTime;
}
